package com.sy.cloud.guess.model;

import com.sy.common.model.BaseModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by mac on 2017/11/24.
 */
@Entity
@Table(name="sp_juejin_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JOrder extends BaseModel{
    private Long userid;
    private String phone;
    private String createtime;
    // 1代表已经结束。0代表还没结束
    private Integer type = 0;
    // 购买的商品类型。用1，2，3，4，5，6，7，8，9
    private Integer capital;
    // 购买的金额
    private Integer amount;
    // 竞猜开始时，
//    private double deal_value;
    // 如果胜利，应该获得的金额
    private Double get_amount;
    // 1代表赢，0代表输
    private Integer is_win = 0;
    // 竞猜结束时，服务器计算出的结果
    private double end_value;
    // 交易时间。就是间隔多少秒决胜一次
    private Integer trade_time;
    // 决胜的时间戳
    private String givetime;

    private Integer issue;

}
